<?php
class Product_Service_ProductStocketLog
{
	public function __construct(){
		
	}

	public static function getByProductId($id){		
		$obj = new Product_Model_ProductStocketLog();
		return $obj->getByProductId($id);		
	}

	public static function getByCondition($condition=array(),$type='*',$order=array('product_id'), $pageSize=0, $page=1)
	{ 
		$obj=new Product_Model_ProductStocketLog();
		$rows= $obj->getByCondition( $condition,$type,$order, $pageSize,$page);	
		return $rows;
	}
	public static function getProductStocketLogByProductId($productId,$page,$pageSize){
		$obj=new Product_Model_ProductStocketLog();
		$rows= $obj->getProductStocketLogByProductId($productId,$page,$pageSize);
		return $rows;
		
	}
	
	
	public function getAdapter(){
		$model = new Product_Model_ProductStocketLog();
		return $model->getAdapter();
	}
	
	public function update($row,$id){
		$model = new Product_Model_ProductStocketLog();
		return $model->update($row,$id);
	}
	
	public static function create($row)
	{ 
		$obj=new Product_Model_ProductStocketLog();
		return $obj->add($row);
	}
	
	
	
}